home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / CIncludes / Timer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-17  |  992 b   |  59 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Timer.h
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. */
  11.  
  12. #ifndef __TIMER__
  13. #define __TIMER__
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. #endif
  18.  
  19. #ifndef __OSUTILS__
  20. #include <OSUtils.h>
  21. #endif
  22.  
  23.  
  24. typedef pascal void (*TimerProcPtr)(void);
  25.  
  26. struct TMTask {
  27.     QElemPtr qLink;
  28.     short qType;
  29.     TimerProcPtr tmAddr;
  30.     long tmCount;
  31.     long tmWakeUp;
  32.     long tmReserved;
  33. };
  34.  
  35. typedef struct TMTask TMTask;
  36. typedef TMTask *TMTaskPtr;
  37.  
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42. #pragma parameter InsTime(__A0)
  43. pascal void InsTime(QElemPtr tmTaskPtr)
  44.     = 0xA058; 
  45. #pragma parameter InsXTime(__A0)
  46. pascal void InsXTime(QElemPtr tmTaskPtr)
  47.     = 0xA458; 
  48. #pragma parameter PrimeTime(__A0,__D0)
  49. pascal void PrimeTime(QElemPtr tmTaskPtr,long count)
  50.     = 0xA05A; 
  51. #pragma parameter RmvTime(__A0)
  52. pascal void RmvTime(QElemPtr tmTaskPtr)
  53.     = 0xA059; 
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57.  
  58. #endif
  59.